﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;

namespace ProjScan.Config
{
	// Token: 0x02000328 RID: 808
	internal class CSCheckConfig : BaseConfig
	{
		// Token: 0x060012DB RID: 4827 RVA: 0x0005A548 File Offset: 0x00058748
		public override void Init()
		{
			this.hasSeparateTargetDirSettings = true;
			this.hasWhiteList = false;
			this.hasfailedData = true;
			this.hasFixRule = false;
			bool flag = this.dicRuleConfig == null;
			if (flag)
			{
				this.dicRuleConfig = new Dictionary<string, RuleConfig>();
			}
			else
			{
				this.dicRuleConfig.Clear();
			}
		}

		// Token: 0x060012DC RID: 4828 RVA: 0x00008D6C File Offset: 0x00006F6C
		public override void LoadConfig(JObject data)
		{
			this._rootConfig = (JObject)data["CS_Check"];
			this.ResolveRule();
		}

		// Token: 0x060012DD RID: 4829 RVA: 0x00008D8C File Offset: 0x00006F8C
		public override void SaveConfig(JObject data)
		{
			data.Add("CS_Check", this.SaveJObjectRule());
		}
	}
}
